package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @author du
 * date 2018/8/4 下午12:33
 */
public class ExaminePageResult implements Parcelable{

    /**
     * id : 175
     * ex_title : 2017牛娃课堂百分大法一年级上学期期末试卷A
     * ex_usedtime : 90
     * ex_list : [{"id":4461,"problem_title":"<p>长方体有几个面？<\/p>","problem_type":1,"correct_answer":["2"],"is_good":1,"exercises_answer_list":["4","6","8","12"]},{"id":4462,"problem_title":"<p>和13相邻的数是？<\/p>","problem_type":1,"correct_answer":["3"],"is_good":1,"exercises_answer_list":["11和12","12和13","12和14","11和14"]},{"id":4463,"problem_title":"<p>在25、13、0、4、31、22这几个数中，最大的是几？<\/p>","problem_type":1,"correct_answer":["3"],"is_good":1,"exercises_answer_list":["13","42","31","25"]},{"id":4464,"problem_title":"<p>8+6（）16-3<\/p>","problem_type":1,"correct_answer":["3"],"is_good":1,"exercises_answer_list":["<","=",">","不确定"]},{"id":4465,"problem_title":"<p><img width=\"118\" height=\"111\" class=\"lazy\" src=\"http://pic.niuwaketang.com/ueditor_20180103_5a4c795ddb810.png\" data-echo=\"http://pic.niuwaketang.com/ueditor_20180103_5a4c795ddb810.png\" 118  >请问这个钟现在几点？<\/p>","problem_type":1,"correct_answer":["3"],"is_good":1,"exercises_answer_list":["4","3","2","1"]},{"id":4466,"problem_title":"<p>有一个数23456，十位数是几？<\/p>","problem_type":1,"correct_answer":["3"],"is_good":1,"exercises_answer_list":["3","4","5","6"]},{"id":4467,"problem_title":"<p>与15 相邻两个数是16、17（ 判断题，填\u201c对\u201d或\u201c错\u201d）<\/p>","problem_type":3,"correct_answer":["错"],"is_good":1,"exercises_answer_list":[""]},{"id":4468,"problem_title":"<p>比4 小的数是0、1、2、3、4（判断题，填\u201c对\u201d或\u201c错\u201d）<\/p>","problem_type":3,"correct_answer":["错"],"is_good":1,"exercises_answer_list":[""]},{"id":4469,"problem_title":"<p>盘里一个苹果也没有，可以用0来表示（判断题，填\u201c对\u201d或\u201c错\u201d）<\/p>","problem_type":3,"correct_answer":["对"],"is_good":1,"exercises_answer_list":[""]},{"id":4470,"problem_title":"<p><img width=\"79\" height=\"119\" class=\"lazy\" src=\"http://pic.niuwaketang.com/ueditor_20180103_5a4c7a2d91c61.png\" data-echo=\"http://pic.niuwaketang.com/ueditor_20180103_5a4c7a2d91c61.png\" 79  >不是圆柱。（&nbsp;判断题，填\u201c对\u201d或\u201c错\u201d）<\/p>","problem_type":3,"correct_answer":["对"],"is_good":1,"exercises_answer_list":[""]},{"id":4471,"problem_title":"<p>□ ○ △ ☆ ，○排第1（&nbsp;判断题，填\u201c对\u201d或\u201c错\u201d）<\/p>","problem_type":3,"correct_answer":["错"],"is_good":1,"exercises_answer_list":[""]},{"id":4472,"problem_title":"<p><img width=\"167\" height=\"57\" class=\"lazy\" src=\"http://pic.niuwaketang.com/ueditor_20180103_5a4c7b0190e7f.png\" data-echo=\"http://pic.niuwaketang.com/ueditor_20180103_5a4c7b0190e7f.png\" 167  >这两根绳子不一样长（&nbsp;判断题，填\u201c对\u201d或\u201c错\u201d）<\/p>","problem_type":3,"correct_answer":["对"],"is_good":1,"exercises_answer_list":[""]},{"id":4483,"problem_title":"<p>按规律填数（答案之间用一个空格隔开）<\/p><p><img width=\"405\" height=\"72\" class=\"lazy\" src=\"http://pic.niuwaketang.com/ueditor_20180125_5a69b75c23184.png\" data-echo=\"http://pic.niuwaketang.com/ueditor_20180125_5a69b75c23184.png\" 405  ><\/p>","problem_type":3,"correct_answer":["15 16 18 19"],"is_good":1,"exercises_answer_list":[""]},{"id":4484,"problem_title":"<p>苹果比梨多（&nbsp; ）个，桃比苹果少（&nbsp; &nbsp;）个，梨比桃多（&nbsp; &nbsp;）个。去掉（&nbsp; ）个苹果，同时去掉（&nbsp; ）个梨，三种水果的个数就同样多。（答案之间用一个空格隔开）<\/p><p><img width=\"377\" height=\"92\" class=\"lazy\" src=\"http://pic.niuwaketang.com/ueditor_20180125_5a69b8309d45c.png\" data-echo=\"http://pic.niuwaketang.com/ueditor_20180125_5a69b8309d45c.png\" 377  ><\/p>","problem_type":3,"correct_answer":["4 5 1 5 1"],"is_good":1,"exercises_answer_list":[""]},{"id":4485,"problem_title":"<p>个位是5，十位是1，这个数是（ ），它是由（ ）个十和（ ）个一组成的。（答案之间用一个空格隔开）<\/p>","problem_type":3,"correct_answer":["15 1 5"],"is_good":1,"exercises_answer_list":[""]},{"id":4486,"problem_title":"<p>3 个小朋友玩捉谜藏游戏，已经捉住了1 个小朋友，还有______个小朋友没有捉住？<\/p>","problem_type":3,"correct_answer":["1"],"is_good":1,"exercises_answer_list":[""]},{"id":4487,"problem_title":"<p>小军吃了5个苹果,还剩下3 个,小军原有多少个苹果？<\/p>","problem_type":3,"correct_answer":["8"],"is_good":1,"exercises_answer_list":[""]},{"id":4488,"problem_title":"<p>同学们要种14 棵树,已经种了10 棵,还要种多少棵？<\/p>","problem_type":3,"correct_answer":["4"],"is_good":1,"exercises_answer_list":[""]},{"id":4489,"problem_title":"<p>同学们在马路两边各插了8 面小旗,一共插了_______面？<\/p>","problem_type":3,"correct_answer":["16"],"is_good":1,"exercises_answer_list":[""]},{"id":4490,"problem_title":"<p>原来有7 只猴子，又跑来了6 只，现在有几只？<\/p>","problem_type":3,"correct_answer":["13"],"is_good":1,"exercises_answer_list":[""]}]
     * questions_number : 30
     * is_test : 2
     * type_id : 3
     * message_list : [{"mid":3970,"posttime":1530263389,"content":"老师为什么20题不太清楚","answer_teacher_id":19,"answer_posttime":1530498982,"answer_content":"老师这里是没有问题的哦","status":2,"problem_username":"徐子皓","problem_avatar":"http://api.niuwaketang.com/avatar/avatar.png","answer_teacher_nicename":"牛娃老师","answer_teacher_avatar":"http://api.niuwaketang.com/avatar/teacher_avatar.png"},{"mid":2622,"posttime":1518353206,"content":"第20题正方形是四条边相等的图形，但是图中没有四条变相等的图形，所以图中没有正方形","answer_teacher_id":6,"answer_posttime":1518417293,"answer_content":"学员你好，这里的确图形不标准，我们会改一下，你也继续加油啦~","status":2,"problem_username":"^兰仔^","problem_avatar":"http://api.niuwaketang.com/avatar/avatar.png","answer_teacher_nicename":"牛娃老师","answer_teacher_avatar":"http://api.niuwaketang.com/avatar/teacher_avatar.png"},{"mid":1214,"posttime":1517897995,"content":"老师，第24题梨前面少了一个个字。","answer_teacher_id":6,"answer_posttime":1517932829,"answer_content":"学员你好，谢谢你的提醒，我们已经调整好了~","status":2,"problem_username":"Candy","problem_avatar":"http://api.niuwaketang.com/avatar/avatar.png","answer_teacher_nicename":"牛娃老师","answer_teacher_avatar":"http://api.niuwaketang.com/avatar/teacher_avatar.png"},{"mid":3160,"posttime":1516800659,"content":"xiexie","answer_teacher_id":19,"answer_posttime":1516858472,"answer_content":"不客气，继续加油","status":2,"problem_username":"135****068","problem_avatar":"http://api.niuwaketang.com/avatar/avatar.png","answer_teacher_nicename":"牛娃老师","answer_teacher_avatar":"http://api.niuwaketang.com/avatar/teacher_avatar.png"}]
     */

    private String id;
    private String ex_title;
    private String ex_usedtime;
    private String questions_number;
    private String is_test;
    private String type_id;
    private List<ExListBean> ex_list;
    private List<MessageListBean> message_list;

    protected ExaminePageResult(Parcel in) {
        id = in.readString();
        ex_title = in.readString();
        ex_usedtime = in.readString();
        questions_number = in.readString();
        is_test = in.readString();
        type_id = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(ex_title);
        dest.writeString(ex_usedtime);
        dest.writeString(questions_number);
        dest.writeString(is_test);
        dest.writeString(type_id);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<ExaminePageResult> CREATOR = new Creator<ExaminePageResult>() {
        @Override
        public ExaminePageResult createFromParcel(Parcel in) {
            return new ExaminePageResult(in);
        }

        @Override
        public ExaminePageResult[] newArray(int size) {
            return new ExaminePageResult[size];
        }
    };

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEx_title() {
        return ex_title;
    }

    public void setEx_title(String ex_title) {
        this.ex_title = ex_title;
    }

    public String getEx_usedtime() {
        return ex_usedtime;
    }

    public void setEx_usedtime(String ex_usedtime) {
        this.ex_usedtime = ex_usedtime;
    }

    public String getQuestions_number() {
        return questions_number;
    }

    public void setQuestions_number(String questions_number) {
        this.questions_number = questions_number;
    }

    public String getIs_test() {
        return is_test;
    }

    public void setIs_test(String is_test) {
        this.is_test = is_test;
    }

    public String getType_id() {
        return type_id;
    }

    public void setType_id(String type_id) {
        this.type_id = type_id;
    }

    public List<ExListBean> getEx_list() {
        return ex_list;
    }

    public void setEx_list(List<ExListBean> ex_list) {
        this.ex_list = ex_list;
    }

    public List<MessageListBean> getMessage_list() {
        return message_list;
    }

    public void setMessage_list(List<MessageListBean> message_list) {
        this.message_list = message_list;
    }

    public static class ExListBean {
        /**
         * id : 4461
         * problem_title : <p>长方体有几个面？</p>
         * problem_type : 1
         * correct_answer : ["2"]
         * is_good : 1
         * exercises_answer_list : ["4","6","8","12"]
         */

        private String id;
        private String problem_title;
        private String problem_type;
        private String is_good;
        private List<String> correct_answer;
        private List<String> exercises_answer_list;
        private boolean isWrite;
        private String value="";

        public boolean isWrite() {
            return isWrite;
        }

        public void setWrite(boolean write) {
            isWrite = write;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getProblem_title() {
            return problem_title;
        }

        public void setProblem_title(String problem_title) {
            this.problem_title = problem_title;
        }

        public String getProblem_type() {
            return problem_type;
        }

        public void setProblem_type(String problem_type) {
            this.problem_type = problem_type;
        }

        public String getIs_good() {
            return is_good;
        }

        public void setIs_good(String is_good) {
            this.is_good = is_good;
        }

        public List<String> getCorrect_answer() {
            return correct_answer;
        }

        public void setCorrect_answer(List<String> correct_answer) {
            this.correct_answer = correct_answer;
        }

        public List<String> getExercises_answer_list() {
            return exercises_answer_list;
        }

        public void setExercises_answer_list(List<String> exercises_answer_list) {
            this.exercises_answer_list = exercises_answer_list;
        }
    }

    public static class MessageListBean {
        /**
         * mid : 3970
         * posttime : 1530263389
         * content : 老师为什么20题不太清楚
         * answer_teacher_id : 19
         * answer_posttime : 1530498982
         * answer_content : 老师这里是没有问题的哦
         * status : 2
         * problem_username : 徐子皓
         * problem_avatar : http://api.niuwaketang.com/avatar/avatar.png
         * answer_teacher_nicename : 牛娃老师
         * answer_teacher_avatar : http://api.niuwaketang.com/avatar/teacher_avatar.png
         */

        private String mid;
        private String posttime;
        private String content;
        private String answer_teacher_id;
        private String answer_posttime;
        private String answer_content;
        private String status;
        private String problem_username;
        private String problem_avatar;
        private String answer_teacher_nicename;
        private String answer_teacher_avatar;

        public String getMid() {
            return mid;
        }

        public void setMid(String mid) {
            this.mid = mid;
        }

        public String getPosttime() {
            return posttime;
        }

        public void setPosttime(String posttime) {
            this.posttime = posttime;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getAnswer_teacher_id() {
            return answer_teacher_id;
        }

        public void setAnswer_teacher_id(String answer_teacher_id) {
            this.answer_teacher_id = answer_teacher_id;
        }

        public String getAnswer_posttime() {
            return answer_posttime;
        }

        public void setAnswer_posttime(String answer_posttime) {
            this.answer_posttime = answer_posttime;
        }

        public String getAnswer_content() {
            return answer_content;
        }

        public void setAnswer_content(String answer_content) {
            this.answer_content = answer_content;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getProblem_username() {
            return problem_username;
        }

        public void setProblem_username(String problem_username) {
            this.problem_username = problem_username;
        }

        public String getProblem_avatar() {
            return problem_avatar;
        }

        public void setProblem_avatar(String problem_avatar) {
            this.problem_avatar = problem_avatar;
        }

        public String getAnswer_teacher_nicename() {
            return answer_teacher_nicename;
        }

        public void setAnswer_teacher_nicename(String answer_teacher_nicename) {
            this.answer_teacher_nicename = answer_teacher_nicename;
        }

        public String getAnswer_teacher_avatar() {
            return answer_teacher_avatar;
        }

        public void setAnswer_teacher_avatar(String answer_teacher_avatar) {
            this.answer_teacher_avatar = answer_teacher_avatar;
        }
    }
}
